package com.day02;

import com.day01.Hero;
import com.day01.MyIterator;

import java.util.Iterator;

public class MyIterable implements Iterable<Hero>{

    @Override
    public Iterator<Hero> iterator() {
        MyIterator myIterator = null;
        try {
            myIterator = new MyIterator();
        } catch (Exception e) {
            e.printStackTrace();
        }
        return myIterator;
    }


}
